<template>
  <div id="app">
     <p>
    <!-- 使用 router-link 组件来导航. -->
    <!-- 通过传入 `to` 属性指定链接. -->
    <!-- <router-link> 默认会被渲染成一个 `<a>` 标签 -->
    <!-- <router-link to="/index">Go to about</router-link>
    <router-link to="/hello">Go to Home</router-link> -->
  </p>
      
   <router-view></router-view>
  </div>
</template>

<script>

export default { 
  name: 'app',
  data:function(){
   return  {rs:''}
  },
  
  methods:{
     showDialog() {
      let that=this
       this.$axios.get('api/hello',{
         name:'lic'
       }).then(
         function(res){
           console.log(res.data)
           that.rs=res.data
           that.$createDialog({
          type: 'alert',
          title: 'Alert',
          content: that.rs
        }).show()
           }) 
       .catch()
        
      }
  }
}
</script>

<style>
#app {

  /* background-color:#f0f0f0; */
}
</style>
